<style>
.currentDemand_<?=$this->currentAction?>{
	background:repeat-x #FFFFFF bottom;
	text-decoration: underline;
}
</style>
<script>
commonEffection.setFrameHeight('500');
</script>
<div class="frame_demandDiv">
	<div class="pmflDiv">
		<li><a class="currentDemand_all" href="adminb-demand-all">&nbsp;A l l&nbsp;</a></li>
		<li><a class="currentDemand_active" href="adminb-demand-active">Active</a></li>
		<li><a class="currentDemand_ended" href="adminb-demand-ended">Ended</a></li>
		<li style="margin-left:20px"><a class="currentDemand_add" href="adminb-demand-add">Create a post</a></li>
	</div>
	<div class="clear"></div>
	<?if($this->pageArray['pageNumber']>0):?>
		<form name="demandForm" id="userdisplay" method="post" action="adminb<?=CHOSING_DE?>demand<?=CHOSING_DE?>dodel">
		<div class="pmItemDiv">
			<?for($i=0;$i<count($this->itemArray);$i++):?>
			<div>
			<span class="itemDivSpan">
				<a onclick="return shouldDel();" href="adminb<?=CHOSING_DE?>demand<?=CHOSING_DE?>dodel?itemid=<?=$this->itemArray[$i]['itemid']?>">delete</a>　
				<a href="adminb<?=CHOSING_DE?>demand<?=CHOSING_DE?>edit?itemid=<?=$this->itemArray[$i]['itemid']?>">edit</a>　
				<input type="checkbox" name="itemArray[]" value="<?=$this->itemArray[$i]['itemid']?>" />
			</span><?=$i+1?>.<?=$this->itemArray[$i]['subject']?>
			</div>
			<?endfor;?>
			<div><input onclick="selectAll(this,'demandForm','itemArray[]');" type="checkbox" /> Select all　<input onClick="reverseSelect();return false;" type="submit" value="Reverse" />　<input onClick="return checkShouldDelItems('demandForm','itemArray[]',1);" type="submit" value="Delete"/></div>
			<div class="pmPageDiv">All <?=$this->pageArray['pageNumber']?> pages　<?=$this->pageString?></div>
		</div>
		</form>
	<?else:?>
		<div style="padding:10px">
			<?=$this->getMsg('No demand!');?>
		</div>
	<?endif;?>
</div>